package com.winsdom.vo.uniformCharge;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;
import java.time.LocalDate;

@ApiModel("应收详情")
@Data
public class BillingVO {
    @ApiModelProperty(value = "账期")
    @JsonIgnore
    private String billingPeriod;
    @ApiModelProperty(value = "账单编号")
    @JsonIgnore
    private String billNumber;
    @ApiModelProperty(value = "账单明细id")
    private Integer detailId;
    @ApiModelProperty(value = "资源名称（项目-楼栋-楼层-资源）")
    private String resourceName;
    @ApiModelProperty(value = "计费开始日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate startDate;
    @ApiModelProperty(value = "计费结束日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate endDate;
    @ApiModelProperty(value = "收费项目")
    private String meterName;
    @ApiModelProperty(value = "单价")
    private BigDecimal unitPrice;
    @ApiModelProperty(value = "用量")
    private BigDecimal usageAmount;
    @ApiModelProperty(value = "建筑面积")
    private BigDecimal buildingArea;
    @ApiModelProperty(value = "金额小计（单价×用量）")
    private BigDecimal amountSubtotal;
    @ApiModelProperty(value = "账单主表 ID")
    private Long billingMainId;
}
